<?php
/**
* @package      com_flexam for Joomla! 1.5
* @version	$Id: flexam.php 2010-04-02 10:07:31Z Hernán Roa $
* @author       Hernán Roa Reyes
* @copyright	(C) 2010 - 2012 Hernán Roa Reyes.
* @license	GNU/GPLv3 http://www.gnu.org/copyleft/gpl.html
* See license.txt
* flexam is free software. This version may have been modified pursuant
* to the GNU General Public License, and as distributed it includes or
* is derivative of works licensed under the GNU General Public License or
* other free or open source software licenses.
*/

// Check to ensure this file is included in Joomla!
defined('_JEXEC') or die('Restricted access');

    $testUser = $this->detailTest->showTestUser($id);
    
    if($testUser){
        echo '<tr style="background-color: #cccccc;"><th>&nbsp;</th><th>'.
            JText::_('FLEXAM_USER').'</th><th>'.
            JText::_('FLEXAM_TEST_NAME').'</th><th>'.
            JText::_('FLEXAM_COURSES').'</th><th>'.
            JText::_('FLEXAM_COURSES_AREAS').'</th><th>'.
            JText::_('FLEXAM_DATE').'<input type="hidden" id="deepLev" name="deepLev" value="1" /></th></tr>';
        
        foreach($testUser as $tUs){
            echo '<tr><td><input type="radio" id="selTest" name="selTest" value="'.$tUs->id.'&'.$tUs->codeAnswerTest.'" onClick="javascript:submitFm(\'showAnswersFm\');" /></td>';
            echo '<td>'.$tUs->nameUser.'</td>';
            echo '<td>'.$tUs->nameTest.'</td>';
            echo '<td>'.$tUs->courses.'</td>';
            echo '<td>'.$tUs->coursesAreas.'</td>';
            echo '<td>'.$tUs->dateAnsw.'</td></tr>';
        }
    }
?>